<div class="menu">
    <?php if($sf_request->getParameter('module')  == 'index' && $sf_request->getParameter('action') == 'city'): ?>
      <a class="selected" href="<?php echo url_for('@city?city_name='.$sf_request->getParameter('city_name', 'all').'&category_name=all') ?>">Reduceri active</a>
    <?php else: ?>
      <a href="<?php echo url_for('@city?city_name='.$sf_request->getParameter('city_name', 'all').'&category_name=all') ?>">Reduceri active</a>
    <?php endif; ?>
    <?php if($sf_request->getParameter('module')  == 'index' && $sf_request->getParameter('action') == 'new'): ?>
      <a class="selected" href="<?php echo url_for('@reduceri_noi_city?city_name='.$sf_request->getParameter('city_name', 'all')) ?>">Reduceri noi</a>
    <?php else: ?>
      <a href="<?php echo url_for('@reduceri_noi_city?city_name='.$sf_request->getParameter('city_name', 'all')) ?>">Reduceri noi</a>
    <?php endif; ?>
    <?php if($sf_request->getParameter('module')  == 'index' && $sf_request->getParameter('action') == 'expired'): ?>
      <a class="selected" href="<?php echo url_for('@expired?city_name='.$sf_request->getParameter('city_name', 'all')) ?>">Reduceri expirate</a>
    <?php else: ?>
      <a href="<?php echo url_for('@expired?city_name='.$sf_request->getParameter('city_name', 'all')) ?>">Reduceri expirate</a>
    <?php endif; ?>
    <div class="search">
      <a href="#" onclick="return false;">Cauta reduceri<?php echo $city?' in '.$city->getName():''?>:</a>
      <span id="cautare">
        <form action="<?php echo url_for('@cauta2') ?>" method="post">
          <input type="text" name="query" id="search_query" value="<?php echo $sf_request->getParameter('query') ?>" />
        </form>
      </span>
    </div>
  &nbsp;
</div>
<?php if($sf_user->isAuthenticated()): ?>
  <div class="menu">
    <a href="<?php echo url_for('site/index') ?>">Site-uri</a>
    <a href="<?php echo url_for('offer/index') ?>">Oferte</a>
    <a href="<?php echo url_for('offer/review') ?>">Review Oferte</a>
    <a href="<?php echo url_for('statistics/index') ?>">Statistici</a>
    <a href="<?php echo url_for('@clearcache') ?>">Clear cache</a>
    <a href="<?php echo url_for('@logout') ?>">Logout</a>
  </div>
<?php endif; ?>